package com.paireach.szwolaiyun.sz_util;

public class PhoneUtil {

    private String systemInfo;
    private String mobileBrand;
    private String phoneModel;

    public PhoneUtil() {
        //操作系统
        systemInfo = android.os.Build.VERSION.RELEASE;
        //手机品牌
        mobileBrand = android.os.Build.BRAND;
        //手机型号
        phoneModel = android.os.Build.MODEL;
    }

    @Override
    public String toString() {
        return "手机品牌：" + mobileBrand + "，手机型号：" + phoneModel + "，操作系统：" + systemInfo;
    }

    /**
     * 获取手机品牌
     * @return 手机品牌
     */
    public String getMobileBrand() {
        return mobileBrand;
    }

    /**
     * 获取手机型号
     * @return 手机型号
     */
    public String getPhoneModel() {
        return phoneModel;
    }

    /**
     * 获取手机操作系统
     * @return 操作系统
     */
    public String getSystemInfo() {
        return systemInfo;
    }
}
